package binary;

public class Demo04 {
    public static void main(String[] args) {
        int n2=0x5d4e0dee;
        int m2=n2<<1;
        int k2=n2<<8;
        System.out.println(Integer.toBinaryString(n2));
        System.out.println(Integer.toBinaryString(m2));
        System.out.println(Integer.toBinaryString(k2));
        int n1=0x679f1d98;
        int m1=n1>>>1;
        int k1=n1>>>8;
        System.out.println(Integer.toBinaryString(n1));
        System.out.println(Integer.toBinaryString(m1));
        System.out.println(Integer.toBinaryString(k1));

        int n=0xb9;
        int m=0xbd00;
        int k=n|m;
        System.out.println(Integer.toBinaryString(n));
        System.out.println(Integer.toBinaryString(m));
        System.out.println(Integer.toBinaryString(k));




        /*
        int n=0x614f7bbb;
        int m=0xff;//掩码，0x后面一位就是4位二进制
        int k=n&m;
        System.out.println(Integer.toBinaryString(n));
        System.out.println(Integer.toBinaryString(m));
        System.out.println(Integer.toBinaryString(k));

         */
    }
}
